import { getHeaders, getMethod } from 'h3'

export default defineEventHandler((event) => {
  const reqHeaders = getHeaders(event)
  const ssrHeader = new Headers()
  const { app } = useRuntimeConfig()

  // ssrHeader.set('cookie', reqHeaders.cookie)

  event.context.baseUrl = app.base_url
  event.context.headers = ssrHeader
})
